package com.whw.fy.mapper;

import com.whw.fy.entity.Parent;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ParentMapper {
    int deleteByPrimaryKey(Integer parentId);

    int insert(Parent record);

    int insertSelective(Parent record);

    Parent selectByPrimaryKey(Integer parentId);

    int updateByPrimaryKeySelective(Parent record);

    int updateByPrimaryKey(Parent record);

    int updateBatch(List<Parent> list);

    int updateBatchSelective(List<Parent> list);

    int batchInsert(@Param("list") List<Parent> list);

    int updateParentStatusByParentId(@Param("updatedParentStatus") Integer updatedParentStatus, @Param("parentId") Integer parentId);

    int updateParentOpenidByParentId(@Param("updatedParentOpenid") String updatedParentOpenid, @Param("parentId") Integer parentId);

    List<Parent> MohuSearchByParentName(@Param("parentName") String parentName);

    List<Parent> selectAll();

    List<Parent> selectByParentSex(@Param("parentSex") String parentSex);

    Parent selectAllByParentCall(@Param("parentCall") String parentCall);

    int updateParentOpenidByParentCall(@Param("updatedParentOpenid") String updatedParentOpenid, @Param("parentCall") String parentCall);

    Parent selectByParentOpenid(@Param("parentOpenid") String openId);
}